package pl.ydp.components.mathcell.mathrecognizer.engine.database.modelsets.math_basic.characters
{
	import pl.ydp.components.mathcell.mathrecognizer.characters.Character;
	import pl.ydp.components.mathcell.mathrecognizer.geometry.classification.PrimitiveType;
	import pl.ydp.components.mathcell.mathrecognizer.model.PrimitivesRelation;
	import pl.ydp.components.mathcell.mathrecognizer.model.RelationDescription;
	import pl.ydp.components.mathcell.mathrecognizer.model.RelationDescriptorType;
	import pl.ydp.components.mathcell.mathrecognizer.model.ShapeModel;
	import pl.ydp.components.mathcell.mathrecognizer.model.descriptors.LocationDescriptor;
	import pl.ydp.components.mathcell.mathrecognizer.model.descriptors.ObjectDescriptor;
	import pl.ydp.components.mathcell.mathrecognizer.model.descriptors.SizeDescriptor;
	import pl.ydp.components.mathcell.mathrecognizer.model.presets.PrimitivePresets;
	
	public class MB_ch_divg
	{
		
		public static const MODELS_COUNT:Number = 1;
		
		//---------------------------------------------------
		
		public static function getModels():Array{
			
			var divideShapeModels:Array = new Array();
			
			divideShapeModels.push(getModel0());		
			
			return divideShapeModels;
		}
		
		//---------------------------------------------------
		
		private static function getModel0():ShapeModel{
			var divide:ShapeModel;
			var name:String = "MB_/_GRE";
			var divide_prim:Array = new Array();
			var divide_ref:Array = new Array();
			var divide_rel:Array = new Array();
			
			divide_prim.push(PrimitiveType.DOT, PrimitiveType.LINE0, PrimitiveType.DOT);
			
			divide_ref.push(0,1,2,PrimitivePresets.RLT_FULL);

			divide_rel.push(new RelationDescription(0,1,new PrimitivesRelation(RelationDescriptorType.LOCATION, LocationDescriptor.ABOVE, 10)));
			
			divide_rel.push(new RelationDescription(1,2,new PrimitivesRelation(RelationDescriptorType.LOCATION, LocationDescriptor.ABOVE, 10)));
			
			divide_rel.push(new RelationDescription(1,3,new PrimitivesRelation(RelationDescriptorType.SIZE, SizeDescriptor.WIDTH | SizeDescriptor.ABOUT_15, 10)));
						
			//
			
			divide = new ShapeModel(Character.DIVIDE_G, divide_prim, divide_ref, divide_rel, new Array(), name);
			
			return divide;						
		}


	}
}